package com.zerox.mapper;

import com.zerox.entity.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysDeptMapper {
    List<SysDept> selectDeptList(SysDept dept);

    List<SysDept> buildDeptTree(List<SysDept> depts);


    List<SysDept> list(@Param("deptName") String deptName, @Param("startIndex") Integer startIndex,@Param("pageSize") Integer pageSize);

    int count(@Param("deptName") String deptName);

    int add(SysDept sysDept);

    int delete(Integer deptId);

    SysDept selectById(Integer deptId);

    int update(SysDept sysDept);
}
